#define  _CRT_SECURE_NO_WARNINGS


#include<stdio.h>
int main()
{
    int n = 0, m = 0;
    scanf("%d %d", &n, &m);
    int arr[100] = { 0 };
    int i = 0, count = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%d ", &arr[i]);
        if (arr[i] > m + 30)
            count++;
    }
    printf("%d\n", count);
    return 0;
}